package com.etoak.stock.service;

import com.etoak.stock.pojo.domin.MenuPermissionsDomain;
import com.etoak.stock.pojo.domin.SysUserRoleDomain;
import com.etoak.stock.vo.req.updatePermsByRoleIdReqVo;
import com.etoak.stock.vo.resp.PageResult;
import com.etoak.stock.vo.resp.R;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author by 孙有泽
 * @Date 2024/10/26 14:44
 * @Description
 */
@Service
public interface UserRoleService {
    R<PageResult<SysUserRoleDomain>> getRoles(Integer pageNum, Integer pageSize);

    R<List<MenuPermissionsDomain>> getTree();

    R updateStatus(Long roleId, Integer status);

    R deleteRole(Long roleId);

    R updatePermsByRoles(updatePermsByRoleIdReqVo updatePermsByRoleIdReqVo);
}
